/**
 * @Author: 陈瑞鹏
 * @Date:   2023-01-10 11:25:48
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2023-01-10 17:44:19
 */
export default class emailEntity {
  public uid: any;
  public title: string;
  public desc: string;
  public rewardArr: any[]; //奖励数组
  public isRecive: boolean; //是否已经领取
  public type: number; //1 邮箱 2 通知

  public initData(val) {
    this.uid = val._id;
    this.title = val.title;
    this.desc = val.desc;
    this.rewardArr = val.rewardArr || [];
    this.isRecive = val.isRecive;
    this.type = val.type;
  }
}